package com.ruoyi.data.controller;

import java.util.List;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;

import com.ruoyi.data.domain.bo.config.ConfigBo;
import lombok.RequiredArgsConstructor;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import com.ruoyi.common.annotation.RepeatSubmit;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.validate.QueryGroup;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.data.domain.vo.ProjectConfigVo;
import com.ruoyi.data.domain.bo.ProjectConfigBo;
import com.ruoyi.data.service.IProjectConfigService;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 项目配置
 *
 * @author ruoyi
 * @date 2024-10-12
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/devices/config")
public class ProjectConfigController extends BaseController {

    private final IProjectConfigService iProjectConfigService;



    /**
     * 获取项目配置详细信息
     */
    //@SaCheckPermission("devices:config:getData")
    @PostMapping ("/getData")
    public R<ProjectConfigVo> getData(@RequestBody ConfigBo bo) {
        return R.ok(iProjectConfigService.getData(bo));
    }

}
